﻿using Abp.Domain.Entities;
using System;
using System.ComponentModel.DataAnnotations;

namespace Batman.Jianbei.Forum.Core.Domains.Dicts
{
    public class Topic : Entity<string>
    {
        /// <summary>
        /// 话题名称
        /// </summary>
        [Required]
        [MaxLength(50)]
        public string Name { get; set; }

        /// <summary>
        /// 话题描述
        /// </summary>
        [MaxLength(120)]
        public string Description { get; set; }

        /// <summary>
        /// 是否上线（生效）
        /// </summary>
        public bool IsOnline { get; set; }

        /// <summary>
        /// 排序
        /// </summary>
        public int Sort { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateAt { get; set; }

        /// <summary>
        /// 是否删除的
        /// </summary>
        public bool IsDeleted { get; set; }

        /// <summary>
        /// 归属分区
        /// </summary>
        [Required]
        public string PartitionId { get; set; }

        public Partition Partition { get; set; }
    }
}
